/*-------------------------------------------------------------------------
*************************************************************************
 * @doc SPDH
 * @module pspdh.h |  
 *  Prototype for SPDH communication functions.
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   : SoftPay 2000 team  
 * <nl>Notes       :
 *
 * @head3 SPDH Functions |
 * @index | SPDH
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $log:  $
 * ------------------------------------------------------------------------
 ********************************************************************************/
#ifndef PSPDH_H
#define PSPDH_H

#ifdef SPDH_DEFINED

#ifdef SPDH_C
void vdCreateSPDHReversalPacket (char *szPacket, int inPacketSize, int inReversalType);
int inSaveSPDHReversal (TRANSACTION_OBJECT *pobTran, char *szPacket, int inReversalType);
int inModifySPDHReversal (TRANSACTION_OBJECT *pobTran, char *szPacket, int inReversalType);
int inMatchSPDHResponse(TRANSACTION_OBJECT *pobTran, char *pchRespPkt);
VS_BOOL fSPDHTransApproved (char *pchRespCode);
void vdFormSPDHSeqNum (TRANSACTION_OBJECT *pobTran);
#else
extern void vdCreateSPDHReversalPacket (char *szPacket, int inPacketSize, int inReversalType);
extern int inSaveSPDHReversal (void *pobTran, char *szPacket, int inReversalType);
extern int inModifySPDHReversal (void *pobTran, char *szPacket, int inReversalType);
extern int inMatchSPDHResponse(void *pobTran, char *pchRespPkt);
extern VS_BOOL fSPDHTransApproved (char *pchRespCode);
extern void vdFormSPDHSeqNum (void *pobTran);
#endif

#endif /* SPDH_DEFINED */
#endif
